//
//  nxzCustomAlertViewController.h
//  projectAlcohol
//
//  Created by karan kadakia on 11/21/13.
//  Copyright (c) 2013 home. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol CustomAlertViewDelegate
-(void)customAlertViewdialogButtonTouchUpInside:(id)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end

@interface nxzCustomAlertViewController : UIView<CustomAlertViewDelegate>

@property (nonatomic, retain) UIView *parentView;       //the parent view this 'dialog' is attached to
@property (nonatomic, retain) UIView *dialogView;       //Dialog's container view
@property (nonatomic, retain) UIView *containerView;    //Container within the dialog
@property (nonatomic, retain) UIView *buttonView;       //Buttons on the bottom of the dialog

@property (nonatomic, assign) id<CustomAlertViewDelegate> delegate;
@property (nonatomic, retain) NSArray *buttonTitles;
@property (nonatomic, assign) BOOL useMotionEffects;

@property (copy) void (^onButtonTouchUpInside)(nxzCustomAlertViewController *alertView, int buttonIndex) ;

-(id)initWithParentView: (UIView *)_parentView;
-(id)init;

-(void)show;
-(void)close;

-(IBAction)customAlertViewdialogButtonTouchUpInside:(id)sender;

- (void)setOnButtonTouchUpInside:(void (^)(nxzCustomAlertViewController *alertView, int buttonIndex))onButtonTouchUpInside;

@end
